package com.yang.service.impl;

import com.yang.dao.NoteEmailDao;
import com.yang.entity.NoteEmail;
import com.yang.service.NoteEmailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 短信邮箱成功发送表(NoteEmail)表服务实现类
 *
 * @author yangdacheng
 * @since 2022-03-02 19:11:02
 */
@Service("noteEmailService")
public class NoteEmailServiceImpl implements NoteEmailService {
    @Resource
    private NoteEmailDao noteemailDao;

    @Override
    public Boolean insertNoteEmail(NoteEmail noteEmail) {
        return noteemailDao.insertNoteEmail(noteEmail);
    }

    @Override
    public List<NoteEmail> queryAllNoteEmail() {
        return noteemailDao.queryAllNoteEmail();
    }

    @Override
    public List<NoteEmail> queryAllNEByUID(String userID) {
        return noteemailDao.queryAllNEByUID(userID);
    }

    @Override
    public Integer queryEmailCount(Integer state,Integer type,String uid) {
        return noteemailDao.queryEmailCount(state, type, uid);
    }

    @Override
    public List<NoteEmail> queryBeforeSevenDay(String userID) {
        return noteemailDao.queryBeforeSevenDay(userID);
    }

    @Override
    public Integer queryDayCountByState(String userID, Integer noteType, Integer beforeDay) {
        return noteemailDao.queryDayCountByState(userID, noteType, beforeDay);
    }


}